import uvicorn
from fastapi import FastAPI
from langserve import add_routes
from LongChainDemo01.long_chain_base_use import chain
app=FastAPI(
    title="Language Translate Tool",
    description="A tool for translating text between different languages.",
    version="0.1.0",
)

add_routes(
    app,chain,path="/chain"
)
uvicorn.run(app,host="localhost",port=8000)
# http://localhost:8000/chain/playground/